package com.hitqz.robot.api.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * @author wengyx
 * @date 2024/8/7
 * 检测项类型
 */
@TableName(value = "patrol_check_type")
public class PatrolCheckType {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;
    @NotBlank(message = "媒体类型不能为空")
    private String mediaType;
    @NotBlank(message = "返回结果类型不能为空")
    private String resultType;
    @NotNull(message = "是否为可视化检测项不能为空")
    private Integer isVision;

    private String visionUrl;

    private String visionType;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMediaType() {
        return mediaType;
    }

    public void setMediaType(String mediaType) {
        this.mediaType = mediaType;
    }

    public String getResultType() {
        return resultType;
    }

    public void setResultType(String resultType) {
        this.resultType = resultType;
    }

    public Integer getIsVision() {
        return isVision;
    }

    public void setIsVision(Integer isVision) {
        this.isVision = isVision;
    }

    public String getVisionUrl() {
        return visionUrl;
    }

    public void setVisionUrl(String visionUrl) {
        this.visionUrl = visionUrl;
    }

    public String getVisionType() {
        return visionType;
    }

    public void setVisionType(String visionType) {
        this.visionType = visionType;
    }


    @Override
    public String toString() {
        return "PatrolCheckType{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", mediaType='" + mediaType + '\'' +
                ", resultType='" + resultType + '\'' +
                ", isVision=" + isVision +
                ", visionUrl='" + visionUrl + '\'' +
                ", visionType='" + visionType + '\'' +
                '}';
    }
}
